//
//  Calculator.m
//  Masonry-Exploration
//
//  Created by John on 2018/5/3.
//  Copyright © 2018年 HR Inc. All rights reserved.
//

#import "Calculator.h"

@implementation Calculator


-(Calculator *(^)(int))add
{
    return ^(int num){
        self.result +=num;
        return self;
    };
}

-(Calculator *(^)(int))minus
{
    return ^(int num){
        self.result -=num;
        return self;
    };
}

@end

//相当于NSConstraint
